package jsyf.oa.facade.system;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.system.*;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;

/**
 * @author: xubo
 * @creat: 2017/11/24 0024 14:20
 * description:
 * 服务层
 */
@Path("/systemService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface SystemFacade {


    @Path("/getOrgTreeNodesByUserId")
    List<JSONObject> getOrgTreeNodesByUserId(String userId);


    @Path("/getUserViewBySqlWhere")
    JSONObject getUserViewBySqlWhere(JSONObject jsonObject, Integer requestPage, Integer pageSize);

    @Path("/getCDUAll")
    List<JSONObject> getCDUAll();

    @Path("/getCompanyTree")
    List<JSONObject> getCompanyTree(String jsonData);

    @Path("/getCompanyTreeForXSTZ")
    List<JSONObject> getCompanyTreeForXSTZ(String jsonData);

    @Path("/getCurrentTime")
    String getCurrentTime();

    @Path("/getOrgTreeByUserId")
    List<JSONObject> getOrgTreeByUserId(String jsonData);
}
